home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 131 / XENIATGM131.iso / Shareware / openOffice.org 641 / Windows / f_0047 / sbasic.jar / text / sbasic / common / 03090401.xml < prev    next >
Extensible Markup Language  |  2001-09-07  |  3KB  |  60 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Call Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03090401"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:1.499cm;}
  8.         span.Tabelle1B{
  9.                 width:16.498cm;}
  10.         tr.Tabelle11{
  11.                 }
  12.         td.Tabelle1A1{
  13.                 }
  14.         p.P1{
  15.                 }
  16.         span.T1{
  17.                 font-weight:bold;}
  18.         span.fr1{
  19.                 }
  20.         </style></head><body>
  21.         
  22.         
  23.         <help:to-be-embedded Eid="call" xmlns:help="http://openoffice.org/2000/help">
  24.             <p class="Head1">
  25.                 <help:link Id="66549">Call Statement [Runtime]</help:link>
  26.             </p>
  27.             <p class="Paragraph">Transfers program control to a sub, function or DLL procedure.</p>
  28.         </help:to-be-embedded>
  29.         <p class="Paragraph">
  30.             <span class="T1">Syntax</span>:</p>
  31.         <p class="Paragraph">[Call] Name [Parameter] <help:key-word value="Call" tag="kw66549_1" xmlns:help="http://openoffice.org/2000/help"/>
  32.         </p>
  33.         <p class="Paragraph">
  34.             <span class="T1">Parameter</span>:</p>
  35.         <p class="Paragraph">Name: Name of the sub, function or DLL to call</p>
  36.         <p class="Paragraph">Parameter: Parameters to pass to the procedure. The type and number of parameters is dependent on the executed routine.</p>
  37.         <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  38.                         <p class="TextInTable">
  39.                             <draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onRequest" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/>
  40.                         </p>
  41.                     </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  42.                         <p class="TextInTable">A keyword is optional when calling a procedure. If a function is executed as an expression, the parameters must be enclosed in parenthesis in the function. If a DLL is called, it must first be specified in the <span class="T1">
  43.                                 Declare-Anweisung </span>.</p>
  44.                     </span></th></tr></table>
  45.         <p class="Paragraph"/>
  46.         <p class="Paragraph">
  47.             <span class="T1">Example:</span>
  48.         </p>
  49.         <p class="PropText"/>
  50.         <p class="PropText"/>
  51.         <p class="PropText">Sub ExampleCall</p>
  52.         <p class="PropText">Dim sVar As String</p>
  53.         <p class="PropText">sVar = "Office"</p>
  54.         <p class="PropText">Call f_callFun sVar</p>
  55.         <p class="PropText">end Sub</p>
  56.         <p class="PropText"/>
  57.         <p class="PropText">Sub f_callFun (sText as String)</p>
  58.         <p class="PropText">Msgbox sText</p>
  59.         <p class="PropText">end sub</p>
  60.     </body></html>